﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TextManager.Interop;

namespace NBusiness.VisualStudio.Commands
{
    class RecolorizeCommand : CommandBase
    {
        ESharpSource _source;
        TextLineChange[] _lineChages;

        public RecolorizeCommand(ESharpSource source, params TextLineChange[] lineChanges)
        {
            _source = source;
            _lineChages = lineChanges;
        }

        protected override void Execute()
        {
            _source.Recolorize(_lineChages);
        }
    }
}
